//
//  HUD.m
//  优学荟管理系统
//
//  Created by 星道 on 17/6/26.
//  Copyright © 2017年 星道三好. All rights reserved.
//

#import "HUD.h"

@implementation HUD

// 成功
+ (void)showSuccess:(NSString *)success
{
    [MBProgressHUD showSuccess:success];
}
+ (void)showSuccess:(NSString *)success toView:(UIView *)view
{
    [MBProgressHUD showSuccess:success toView:view];
}

//失败
+ (void)showError:(NSString *)error
{
    [MBProgressHUD showError:error];
}
+ (void)showError:(NSString *)error toView:(UIView *)view
{
    [MBProgressHUD showError:error toView:view];
}

//带文字的加载
+ (void)showMessage:(NSString *)message
{
    [MBProgressHUD showMessage:message];
}
+ (void)showMessage:(NSString *)message toView:(UIView *)view;
{
    [MBProgressHUD showMessage:message toView:view];
}

//隐藏
+ (void)hideHUD
{
    [MBProgressHUD hideHUD];
}
+ (void)hideHUDForView:(UIView *)view
{
    [MBProgressHUD hideHUDForView:view];
}

//显示加载
+(void)showHUD
{
    [MBProgressHUD showHUD];
}

@end
